package hng.service;

import com.alipay.api.AlipayApiException;
import hng.dto.OrderDataDTO;
import hng.model.OrdersDO;
import com.baomidou.mybatisplus.extension.service.IService;
import hng.vo.OrderProductVO;
import hng.vo.OrdersDetailVO;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 订单表 服务类
 * </p>
 *
 * @author 告白
 * @since 2024-06-27
 */
public interface OrdersService extends IService<OrdersDO> {

    void saveOrders(OrderDataDTO orderDataDTO);

    void paySuccess(Map<String, String> params) throws AlipayApiException;

    List<OrderProductVO> getOrderProduct(Integer orderId);

    List<OrdersDetailVO> orderInfo(Integer orderStatus);

    void receiveGoods(Integer orderId);
}
